﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;
namespace BLL
{
    public class TermCurrentHandler
    {
        // Handle to the Term Current DBAccess class
        TermCurrentDBAccess objTermCurrent = null;

        public TermCurrentHandler()
        {
            objTermCurrent = new TermCurrentDBAccess();
           
        }

        public TermCurrent GetMaturityTermCurrent(string AccountNumber, String CONNECTION_STRING)
        {
            return objTermCurrent.GetMaturityTermCurrent(AccountNumber, CONNECTION_STRING);
        }


        public bool UpdateTermCurrentBalanceReceived(String AccountNumber, Double Balance, String CONNECTION_STRING)
        {
            return objTermCurrent.UpdateTermCurrentBalanceReceived(AccountNumber, Balance, CONNECTION_STRING);
        }

        public DataTable GetTermCurrentTable(int UserID, String CONNECTION_STRING)
        {
            return objTermCurrent.GetTermCurrentTable(UserID, CONNECTION_STRING);
        }

        public List<TermCurrent> GetTermCurrentList(int TermCurrentID, String CONNECTION_STRING)
        {
            return objTermCurrent.GetTermCurrentList(TermCurrentID, CONNECTION_STRING);
        }

        public bool UpdateTermCurrent(TermCurrent obj, String CONNECTION_STRING)
        {
            return objTermCurrent.UpdateTermCurrent(obj, CONNECTION_STRING);
        }

        public TermCurrent GetTermCurrentDetails(int TermCurrentID, String CONNECTION_STRING)
        {
            return objTermCurrent.GetTermCurrentDetails(TermCurrentID, CONNECTION_STRING);
        }

        public bool DeleteTermCurrent(int TermCurrentID, String CONNECTION_STRING)
        {
            return objTermCurrent.DeleteTermCurrent(TermCurrentID, CONNECTION_STRING);
        }

        public bool AddNewTermCurrent(TermCurrent obj,String CONNECTION_STRING)
        {
            return objTermCurrent.AddNewTermCurrent(obj, CONNECTION_STRING);
        }
    }
}
